/**
 * 
 */
package annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author massat
 * 
 */

@Target( { ElementType.FIELD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface Info {
	final int STRING = 1;
	final int EMAIL = 2;
	final int URL = 3;
	final int XHTML = 4;

	int type() default STRING;

	int len() default 60;

	int maxLength() default 0;

	int rows() default 1;

	String min() default "";

	String max() default "";

	String description();

	String message() default "";

	String defaultValue() default "";

	boolean fixed() default false;

	boolean required() default false;

	Option[] options() default {};

}
